package com.feimt.common;

public class BaceContent {
    /*为一个线程存一个值*/
    private static ThreadLocal<Long> threadLocal = new ThreadLocal<>();
    /*存*/
    public static void setThreadLocal(Long id){
        threadLocal.set(id);
    }
    /*取*/
    public static Long getThreadLocal(){
        return threadLocal.get();
    }
    /*删*/
    public static void removeThreadLocal(){
        threadLocal.remove();
    }
}
